package kr.hkit.powerjava.chapter09;

class Date {

	private int year;
	private String month;
	private int day;
	private Time center;

	public Date(int year, String month, int day, Time center) {
		this.year = year;
		this.month = month;
		this.day = day;
		this.center = center;
	}

	public void setDate(int year, String month, int day, Time center) {
		this.year = year;
		this.month = month;
		this.day = day;
		this.center = center;
	}

	@Override
	public String toString() {
		return "Date [year=" + year + ", month=" + month + ", day=" + day
				+ ", center=" + center + "]";
	}
	
}
